package com.kevin.chat;

import com.kevin.chat.server.ChatServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/*
 * 程序启动类 同时启动聊天服务器
 * @author Kevin
 * @date 2020/12/25 17:24
 *
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        String host = "172.17.17.123";
        int port = 2222;
        ChatServer.serverStart(host, port);
    }
}
